package com.base.logistics.jdl.bean.trace;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * 查询物流轨迹（商家用）响应对象
 * </pre>
 * @since 2021-02-19
 */
public class QueryTraceResponse  implements Serializable {

    /**
     * 返回状态码,100:成功；200:失败；500:系统异常
     */
    private Integer code;


    private String messsage;

    /**
     * 物流轨迹
     */
    private List<TraceDTO> data;

    public QueryTraceResponse() {
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMesssage() {
        return this.messsage;
    }

    public List<TraceDTO> getData() {
        return this.data;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMesssage(String messsage) {
        this.messsage = messsage;
    }

    public void setData(List<TraceDTO> data) {
        this.data = data;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof QueryTraceResponse)) return false;
        final QueryTraceResponse other = (QueryTraceResponse) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$code = this.getCode();
        final Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
        final Object this$messsage = this.getMesssage();
        final Object other$messsage = other.getMesssage();
        if (this$messsage == null ? other$messsage != null : !this$messsage.equals(other$messsage)) return false;
        final Object this$data = this.getData();
        final Object other$data = other.getData();
        if (this$data == null ? other$data != null : !this$data.equals(other$data)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof QueryTraceResponse;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $code = this.getCode();
        result = result * PRIME + ($code == null ? 43 : $code.hashCode());
        final Object $messsage = this.getMesssage();
        result = result * PRIME + ($messsage == null ? 43 : $messsage.hashCode());
        final Object $data = this.getData();
        result = result * PRIME + ($data == null ? 43 : $data.hashCode());
        return result;
    }

    public String toString() {
        return "QueryTraceResponse(code=" + this.getCode() + ", messsage=" + this.getMesssage() + ", data=" + this.getData() + ")";
    }
}
